import Vue from 'vue'
import Router from 'vue-router'
import Index from '@/components/admin/Index'
const AdminLogin = () =>
  import('@/components/admin/Login');
const AdminIndex = () =>
  import('@/components/admin/AdminIndex');
const AdminUser = () =>
  import('@/components/admin/AdminUser');
const AdminTask = () =>
  import('@/components/admin/AdminTask');
const AdminTask2 = () =>
  import('@/components/admin/AdminTask2');
const AdminMoney = () =>
  import('@/components/admin/AdminMoney');
const AdminSetting = () =>
  import('@/components/admin/AdminSetting');
const AdminTaskInfo = () =>
  import('@/components/admin/AdminTaskInfo');
const AdminTaskInfo2 = () =>
  import('@/components/admin/AdminTaskInfo2');
const AdminLog = () =>
  import('@/components/admin/AdminLog');
const AdminFankui = () =>
  import('@/components/admin/AdminFankui');
const AdminLiuld = () =>
  import('@/components/admin/AdminLiuld');
const AdminTj = () =>
  import('@/components/admin/AdminTj');
const AdminRefundList = () =>
  import('@/components/admin/AdminRefundList');
const AdminInform = () =>
  import('@/components/admin/AdminInform');
const AdminInform1 = () =>
  import('@/components/admin/AdminInform1');
const AdminBlacklist = () =>
  import('@/components/admin/AdminBlacklist');
const AdminRefundList1 = () =>
  import('@/components/admin/AdminRefundList1');
const AdminCommentList = () =>
  import('@/components/admin/AdminCommentList');

const AdminPermissions = () =>
  import('@/components/admin/AdminPermissions');
const AdminRanking = () =>
  import('@/components/admin/AdminRanking');
const AdminBackup = () =>
  import('@/components/admin/AdminBackup');
const AdminGoodComment = () =>
  import('@/components/admin/AdminGoodComment');
const AdminPhone = () =>
  import('@/components/admin/AdminPhone');
const AdminMy = () =>
  import('@/components/admin/AdminMy');
const AdminAgentorder = () =>
  import('@/components/admin/AdminAgentorder');
const AdminPersonagent = () =>
  import('@/components/admin/AdminPersonagent');
const EssentialInformation = () =>
  import('@/components/admin/EssentialInformation');
const AccountRecharge = () =>
  import('@/components/admin/AccountRecharge');
const AdCertification = () =>
  import('@/components/admin/AdCertification');
const BusinessCenter = () =>
  import('@/components/admin/BusinessCenter');
const BusinessCenter2 = () =>
  import('@/components/admin/BusinessCenter2');
const PasswordSetting = () =>
  import('@/components/admin/PasswordSetting');
const FundsManagement = () =>
  import('@/components/admin/FundsManagement');
const AgentList = () =>
  import('@/components/admin/AgentList');
const BindingShops = () =>
  import('@/components/admin/BindingShops');
const Bindingshop = () =>
  import('@/components/admin/Bindingshop');
const Chat = () =>
  import('@/components/admin/Chat');
const Admin_WeChat = () =>
  import('@/components/admin/Admin_WeChat');
const Admin_ZFB = () =>
  import('@/components/admin/Admin_ZFB');
const Admin_Merchant = () =>
  import('@/components/admin/Admin_Merchant');
const AdminRecharge = () =>
  import('@/components/admin/Admin_Recharge');
const Adminprice = () =>
  import('@/components/admin/Admin_price');
const Purchase_point = () =>
  import('@/components/admin/Purchase_point');
//意见反馈
const feedback = () =>
  import('@/components/admin/feedback');
const Admin_evaluate = () =>
  import('@/components/admin/Admin_evaluate');
const Admin_evaluation = () =>
import('@/components/admin/Admin_evaluation');
const Admin_dytask = () =>
import('@/components/admin/Admin_dytask');
Vue.use(Router);
export default new Router({
  mode: 'history',
  routes: [{
    path: '/',
    component: Index,
  },
    {
      path: '/mdd',
      component: AdminIndex,
      redirect: '/mdd/task',
      children: [{
        path: 'bindingshop',
        component: Bindingshop
      },
        {
          path: 'user',
          name: 'AdminUser',
          component: AdminUser
        },
        {
          path: 'dytask',
          name: 'Admin_dytask',
          component: Admin_dytask,
        },
        {
          path: 'task',
          name: 'AdminTask',
          component: AdminTask
        },
        {
          path: 'task2',
          name: 'AdminTask2',
          component: AdminTask2
        },
        {
          path: 'money',
          name: 'AdminMoney',
          component: AdminMoney
        },
        {
          path: 'setting',
          name: 'AdminSetting',
          component: AdminSetting,
        },
        {
          path: 'price',
          name: 'Adminprice',
          component: Adminprice,
        },
        {
          path: 'ZFB',
          name: 'Admin_ZFB',
          component: Admin_ZFB,
        },
        {
          path: 'WeChat',
          name: 'Admin_WeChat',
          component: Admin_WeChat,
        },
        {
          path: 'taskInfo',
          name: 'AdminTaskInfo',
          component: AdminTaskInfo,
        },
        {
          path: 'log',
          name: 'AdminLog',
          component: AdminLog,
        },
        {
          path: 'evaluate',
          name: 'Admin_evaluate',
          component: Admin_evaluate,
        },
        {
          path: 'Merchant',
          name: 'Admin_Merchant',
          component: Admin_Merchant,
        },

        {
          path: 'evaluation',
          name: 'Admin_evaluation',
          component: Admin_evaluation,
        },
        {
          path: 'fankui',
          name: 'AdminFankui',
          component: AdminFankui,
        },
        {
          path: 'liuld',
          name: 'AdminLiuld',
          component: AdminLiuld,
        },
        {
          path: 'tj',
          name: 'AdminTj',
          component: AdminTj,
        },
        {
          path: 'inform',
          name: 'AdminInform',
          component: AdminInform,
        },
        {
          path: 'inform1',
          name: 'AdminInform1',
          component: AdminInform1,
        },
        {
          path: 'blacklist',
          name: 'AdminBlacklist',
          component: AdminBlacklist,
        },
        {
          path: 'refundList',
          name: 'AdminRefundList',
          component: AdminRefundList,
        },
        {
          path: "Purchase_point",
          name: "Purchase_point",
          component: Purchase_point,
        },
        {
          path: 'refundList1',
          name: 'AdminRefundList1',
          component: AdminRefundList1,
        },
        {
          path: 'commentList',
          name: 'AdminCommentList',
          component: AdminCommentList,
        },
        {
          path: 'recharge',
          name: 'AdminRecharge',
          component: AdminRecharge,
        },
        {
          path: 'permissions',
          component: AdminPermissions
        },
        {
          path: 'ranking',
          component: AdminRanking
        },
        {
          path: 'backup',
          component: AdminBackup
        },
        {
          path: 'goodComment',
          component: AdminGoodComment
        },
        {
          path: 'phone',
          component: AdminPhone
        },
        {
          path: 'my',
          component: AdminMy
        },
        {
          path: 'agentorder',
          component: AdminAgentorder

        },
        {
          path: 'personagent',
          component: AdminPersonagent

        },
        {
          path: 'information',
          component: EssentialInformation

        },
        {
          path: 'accountrecharge',
          component: AccountRecharge
        },
        {
          path: 'adcertification',
          component: AdCertification

        },
        {
          path: 'businesscenter',
          component: BusinessCenter

        },
        {
          path: 'businesscenter2',
          component: BusinessCenter2

        },
        {
          path: 'passwordsetting',
          component: PasswordSetting

        },
        {
          path: 'fundsmanagement',
          component: FundsManagement

        },
        {
          path: 'agentlist',
          component: AgentList

        },
        {
          path: 'bindingshops',
          component: BindingShops

        },
        {
          path: 'chat',
          component: Chat
        },
        {
          path: 'feedback',
          component: feedback
        },
        {
          path: 'taskInfo2',
          component: AdminTaskInfo2
        }
      ],
    },
    {
      path: '/login',
      name: 'AdminLogin',
      component: AdminLogin
    },

  ]
})

